package com.lahuan.controller;


import com.lahuan.demo.entity.AccountUsd;
import com.lahuan.demo.service.AccountRmbService;
import com.lahuan.demo.service.AccountUsdService;
import com.lahuan.demo.service.FrozeAccountRmbService;
import com.lahuan.demo.service.FrozeAccountUsdService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.UUID;

/**
 * @author lfy
 */
@RestController
@RequestMapping
public class TestController {

    @DubboReference(version = "1.0.0", interfaceClass = AccountRmbService.class,protocol = "custom",filter = "customFilter",loadbalance = "customLoadBalance")
    private AccountRmbService accountRmbService;



    @GetMapping("/test")
    public Object test() {
        try {
            return  accountRmbService.testRpc1("send ");
        }catch (Exception ex){
            ex.printStackTrace();
            return ex.getMessage();
        }
    }


}
